﻿using UnityEngine;
using System.Collections;
using System.Collections.Generic;

public class gameRuleManager : MonoBehaviour {
    public static gameRuleManager _;
	void Start () {
        _ = new gameRuleManager();
	}

    void Update()
    {

    }

    public static List<GameObject> getEnemys(Actor obj)
    {
        if (obj.gameObject.tag == "Enemy")
        {
            return new List<GameObject>(GameObject.FindGameObjectsWithTag("Player"));
        }
        else
        {
            return new List<GameObject>(GameObject.FindGameObjectsWithTag("Enemy"));
        }
    }
}
